const router = require('express').Router();
const connect = require('../mysql');
const { findRoomsAll } = require('../mysql/sql/usermodel');
const commonFunction = require('../config/commonFunction');

router.get('/', function (req,res) {
    connect.query(findRoomsAll,[],function (err,rows) {
        res.json(commonFunction.sendSuccess(rows,'查询成功'))
    })
});




module.exports = router;